//
//  SearViewController.m
//  9.28qipao2
//
//  Created by admin on 16/10/10.
//  Copyright © 2016年 admin. All rights reserved.
//

#import "SearViewController.h"

@interface SearViewController ()<UISearchBarDelegate>

@property (strong,nonatomic,readonly)UISearchBar *seab;
@property (strong,nonatomic,readonly)UISearchController *searchCon;

@end
@implementation SearViewController

- (void)viewDidLoad {
    
    _searchCon = [[UISearchController alloc] initWithSearchResultsController:[self.storyboard instantiateViewControllerWithIdentifier:@"searchres"]];
    self.definesPresentationContext = YES;
    self.tableView.tableHeaderView = _searchCon.searchBar;

    // Do any additional setup after loading the view.
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return 10;
}


- (void)didReceiveMemoryWarning {
   
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
